import request from '@/libs/request'

//分类-列表
export function category_index(data) {
  return request.get('cms/category/index',data)
}
export function type_list(data) {
  return request.get('cms/category/gettypelist',data)
}
export function category_add(data) {
  return request.get('cms/category/add',data)
}
export function category_edit(data) {
  return request.get('cms/category/edit',data)
}
export function category_del(data) {
  return request.post('cms/category/del',data)
}
export function cascader_list(data) {
  return request.get('cms/category/cascaderList',data)
}

//文章-列表
export function article_index(data) {
  return request.get('cms/article/index',data)
}
export function article_type_list() {
  return request.get('cms/article/gettypelist')
}
export function article_add() {
  return request.get('cms/article/add')
}
export function article_add_post(data) {
  return request.post('cms/article/add',data)
}
export function article_edit(data) {
  return request.get('cms/article/edit',data)
}
export function article_edit_post(data) {
  return request.post('cms/article/edit',data)
}
export function article_del(data) {
  return request.post('cms/article/del',data)
}
export function article_multi(data) {
  return request.post('cms/article/multi',data)
}
//广告-列表
export function adv_index(data) {
  return request.get('cms/adv/index',data)
}
export function adv_add(data) {
  return request.get('cms/adv/add',data)
}
export function adv_edit(data) {
  return request.get('cms/adv/edit',data)
}
export function adv_del(data) {
  return request.post('cms/adv/del',data)
}
export function adv_typelist(data) {
  return request.get('cms/adv/getTypeList',data)
}
//协议
export function agree_index(data) {
  return request.get('cms/agree/index',data)
}
export function agree_edit(data) {
  return request.get('cms/agree/edit',data)
}

export function agree_edit_post(data) {
  return request.post('cms/agree/edit',data)
}


//协议
export function msg_index(data) {
  return request.get('cms/msg/index',data)
}
export function msg_edit(data) {
  return request.get('cms/msg/edit',data)
}

export function msg_edit_post(data) {
  return request.post('cms/msg/edit',data)
}
export function msg_add() {
  return request.get('cms/msg/add')
}

export function msg_add_post(data) {
  return request.post('cms/msg/add',data)
}
export function msg_del(data) {
  return request.post('cms/msg/del',data)
}